package com.yonyou.cyxdms.sysAuth.service.dto;

import com.yonyou.cyx.function.utils.bean.BeanMapperUtil;
import com.yonyou.cyxdms.framework.bean.dto.base.DMSBaseDTO;
import com.yonyou.cyx.framework.bean.entity.base.BasePO;
import java.io.Serializable;


/**
 * <p>
 * 员工角色
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */

public class EmployeeRoleDTO extends DMSBaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * EMPLOYEE_ROLE_ID
     */
        private Integer employeeRoleId;
        /**
     * 经销商代码
     */
        private String dealerCode;
        /**
     * EMPLOYEE_ID
     */
        private Integer employeeId;
        /**
     * 是否销售顾问,是否试车员,是否服务顾问,是否技师,是否可以领料,是否检验员,是否保险专员,是否续保专员,是否定保专员,是否装潢专员,是否DCRC专员
     */
        private Integer role;
            private Integer organizationId;
            private Boolean isDeleted;
    
    public EmployeeRoleDTO() {
        super();
    }




    public Integer getEmployeeRoleId() {
        return employeeRoleId;
    }


    public void setEmployeeRoleId(Integer employeeRoleId) {
        this.employeeRoleId = employeeRoleId;
    }



    public String getDealerCode() {
        return dealerCode;
    }


    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }



    public Integer getEmployeeId() {
        return employeeId;
    }


    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }



    public Integer getRole() {
        return role;
    }


    public void setRole(Integer role) {
        this.role = role;
    }



    public Integer getOrganizationId() {
        return organizationId;
    }


    public void setOrganizationId(Integer organizationId) {
        this.organizationId = organizationId;
    }



    public Boolean getDeleted() {
        return isDeleted;
    }


    public void setDeleted(Boolean isDeleted) {
        this.isDeleted = isDeleted;
    }



    @Override
    public String toString() {
        return "EmployeeRoleDTO{" +
        "employeeRoleId=" + employeeRoleId +
        ", dealerCode=" + dealerCode +
        ", employeeId=" + employeeId +
        ", role=" + role +
        ", organizationId=" + organizationId +
        ", isDeleted=" + isDeleted +
        "}";
    }
    /**
     * 将DTO 转换为PO
     * //对某个对象属性进行赋值
     * //BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param poClass dto 需要转换的dto
     * @author quankk
     * @since 2018/7/22 0022
     */
    @Override
    public <T extends BasePO> T transDtoToPo(Class<T> poClass) {
        return super.transDtoToPo(poClass);
    }

    /**
     * 将DTO 转换为PO
     * BeanMapperUtil.populateValueByMethod(transPO,"setXxx",this.getXxx);
     * @param po 需要转换的对象
     * @author quankk
     * @since 2018/7/22 0022
     */
    public <T extends BasePO> void transDtoToPo(T po) {
        BeanMapperUtil.copyProperties(this, po, "employeeRoleId");
    }

}
